#include "ScrambledZipfGenerator.hpp"
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
namespace leanstore
{
namespace utils
{
// -------------------------------------------------------------------------------------
u64 ScrambledZipfGenerator::rand()
{
   u64 zipf_value = zipf_generator.rand();
   return min + (FNV::hash_u64(zipf_value) % n);
}
// -------------------------------------------------------------------------------------
}  // namespace utils
}  // namespace leanstore
